package it.univpm.diiga.memorysim.data;

import java.io.Serializable;

public class Record implements Serializable{
	
	private static final long serialVersionUID = -8686220406977168640L;
	
	private String simulation="";
	private String parameter="";
	private String ListDimProcess="";
	private String ListNumSeg="";
	private String Procreq="";
	private String RAM=""; 
	private String SWAP="";
	//FILE REQUEST
	private String nomi="";
	private String dim="";
	private String paths="";
	private String operazioni="";
	//FILE_SYSTEM
	private String disco="";
	
	public Record(String simulation,String parameter,String ListDimProcess,String ListNumSeg,String Procreq,String InitRAM,String InitSWAP,String disco){
		this.simulation=simulation;
		this.parameter=parameter;
		this.ListDimProcess=ListDimProcess;
		this.ListNumSeg=ListNumSeg;
		this.Procreq=Procreq;
		this.RAM=InitRAM;
		this.SWAP=InitSWAP;
		this.disco=disco;
	}
	
	public void Stamp(){
		System.out.println("simulation "+simulation);
		System.out.println("parameter "+parameter);
		System.out.println("ListDimProcess "+ListDimProcess);
		System.out.println("ListNumSeg "+ListNumSeg);
		System.out.println("Procreq "+Procreq);
		System.out.println("RAM "+RAM); 
		System.out.println("SWAP "+SWAP);
		System.out.println("nomi "+nomi);
		System.out.println("dim "+dim);
		System.out.println("paths "+paths);
		System.out.println("operazioni "+operazioni);
		System.out.println("disco "+disco);
	}

	public String getsimulation(){
		return simulation;
	}
	public String getparameter(){
		return parameter;
	}
	public String getListNumSeg(){
		return ListNumSeg;
	}
	public String getListDimProcess(){
		return ListDimProcess;
	}
	public String getProcreq(){
		return Procreq;
	}
	public String getInitRAM(){
		return RAM;
	}
	public String getInitSWAP(){
		return SWAP;
	}
	
	public String getFileSystem(){
		return disco;
	}
	
	public void setFileRequest( String nomi, String dim,String paths,String operazioni){
		this.nomi=nomi;
		this.dim=dim;
		this.paths=paths;
		this.operazioni=operazioni;
	}
	
	public String[] getFileRequest(){
		return new String[]{nomi,dim,paths,operazioni};
		
	}
}
